<!DOCTYPE html>
<html style="height: 100%">
<head>
    <title>新增活动页面</title>
    <% include ../../layouts/import.ejs %>
</head>
<body style="height: 100%">
<% include ../../layouts/header.ejs %>
<div class="height" style="background: #F8F6F2;">

    <% include ../../layouts/processHeader.ejs %>

    <div class="container main-content">
        <div class="row">
            <form id="mainForm" role="form" method="post" action="/process/activity/save">
                <input type="hidden" value="<%= id %>" name="id"/>
                <div class="form-group">
                    <label class="control-label">活动主题<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= activityName %>" id="activityName" name="activityName" class="form-control"
                           data-provide="typeahead" autocomplete="false"/>
                </div>
                <div class="form-group">
                    <label class="control-label">活动类型<span style="color:red;font-weight:bolder">*</span></label>
                    <select type="text" value="<%= activityType %>" id="activityType" name="activityType"
                            class="form-control">
                        <!--<option value="2">用户反馈</option>-->
                        <!--<option value="1">版本升级</option>-->
                        <!--<option value="0">里程碑</option>-->
                        <option value="2">用户反馈</option>
                        <option value="1">版本升级</option>
                        <option value="0">里程碑</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="control-label">活动日期<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= activityDate %>" id="activityDate" name="activityDate"
                           class="form-control"/>
                </div>
                <div class="form-group">
                    <label class="control-label">事件<span style="color:red;font-weight:bolder">*</span></label>
                    <textarea type="text" id="activityEvent" name="activityEvent"
                              class="form-control"><%= activityEvent %></textarea>
                </div>

                <div class="form-button">
                    <button type="submit" class="person-preservation btn btn-primary">保存</button>
                    <button type="button" data-dismiss="modal" id="return" class="btn btn-default" style="margin-left: 3%">返回</button>
                </div>

            </form>
        </div>
    </div>

    <% include ../../layouts/footer.ejs %>
</div>
</body>

<script>
    $(function () {
        $("#activity").addClass("click-change")
        $('#return').click(function () {
            location.href = '/process/activity/listAll';
        });
        $('#activityDate').datetimepicker({
            format: 'yyyy-mm-dd hh:ii:ss',
            autoclose: true,
            todayBtn: true,
            todayHighlight:true,
            language:'zh-CN'
        })

    })
</script>
</html>